<?php #//AJAX PHP PENNY AUCTION v.1.3

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
                        include "../includes/config.inc.php";
             
                       include "loggedin.inc.php";
                 
                               
          if($_POST[update])  {


                    $activated = $_POST[activated]; 
                    $time = $_POST[time]; 
            
                         $img1 = $_POST[img1]; 
                            $img2 = $_POST[img2]; 
                               $img3 = $_POST[img3];   
                               $img4 = $_POST[img4]; 
                                  $img5 = $_POST[img5]; 
                      $link1 = $_POST[link1];
                 $link2 = $_POST[link2];
                 $link3 = $_POST[link3];
                 $link4 = $_POST[link4];
                 $link5 = $_POST[link5];


 $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_switch='$activated' WHERE id='1'";
       
mysql_query($query2);

 
        $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_time='$time' WHERE id='1'";
       
mysql_query($query2);


        $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_img1='$img1' WHERE id='1'";
       
mysql_query($query2);

   $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_img2='$img2' WHERE id='1'";
       
mysql_query($query2);


   $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_img3='$img3' WHERE id='1'";
       
mysql_query($query2);


       $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_img4='$img4' WHERE id='1'";
       
mysql_query($query2);

     $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_img5='$img5' WHERE id='1'";
       
mysql_query($query2);




       $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_url1='$link1' WHERE id='1'";
       
mysql_query($query2);

   $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_url2='$link2' WHERE id='1'";
       
mysql_query($query2);
            $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_url3='$link3' WHERE id='1'";
       
mysql_query($query2);

   $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_url4='$link4' WHERE id='1'";
       
mysql_query($query2);

   $query2="UPDATE PHPAUCTIONXL_version_2_0 SET slider_url5='$link5' WHERE id='1'";
       
mysql_query($query2);


         }     
       
         $query_settings = "select * from PHPAUCTIONXL_version_2_0 where id='1'";
                             $query_settings2 =  mysql_query ($query_settings);
                                $activated = mysql_result($query_settings2,0,"slider_switch");
                                $time = mysql_result($query_settings2,0,"slider_time");
                                   $img1 = mysql_result($query_settings2,0,"slider_img1");    
             $img2 = mysql_result($query_settings2,0,"slider_img2"); 
             $img3 = mysql_result($query_settings2,0,"slider_img3"); 
             $img4 = mysql_result($query_settings2,0,"slider_img4"); 
             $img5 = mysql_result($query_settings2,0,"slider_img5");                       
                                   
                                   
                                             $link1 = mysql_result($query_settings2,0,"slider_url1");    
             $link2 = mysql_result($query_settings2,0,"slider_url2"); 
             $link3 = mysql_result($query_settings2,0,"slider_url3"); 
             $link4 = mysql_result($query_settings2,0,"slider_url4"); 
             $link5 = mysql_result($query_settings2,0,"slider_url5");                       
                                                            
                                   
                                   
                                   
                                   
                                   
                                   
                                    
                                        
      $ERR = $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_ERROR;
  ?>
  






<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">





<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
    
       <? // -------------------------- Admin Tool Heading --------------------------------------?>
       
       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
     
          
          
   <td class="icono"><img src="images/graph_icon2.gif" width="30" height="26"></td>
                    <td class="breadcrumbs"><p><span><?=$MSG_25_0009?></span>&nbsp;&gt;&gt;&nbsp;<? print $MSG_AJAX_ADMIN_MANAGE_SLIDER_SIDEBAR_TITLE; ?></p></td>
              </tr>
      </table>
      
      
      
      </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
    
    
    
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD align="center">
<BR>
<FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>


  <? // -------------------------- LIGHT BLUE TITLE BAR --------------------------------------?>

	<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0"  class="base" ALIGN="CENTER" style="border:1px solid #ccc;">
		<TR>
			<TD ALIGN=CENTER class=title>
				<p><? print $MSG_AJAX_ADMIN_MANAGE_SLIDER_SIDEBAR_TITLE; ?></p>
			</TD>
		</TR>
		
		
		
		<TR>
		<TD>
		
    
    
    <TABLE WIDTH=100% ALIGN="CENTER" CELLPADDING=0 cellspacing="0" BGCOLOR="#FFFFFF">
		
 <? // -------------------------- ERROR BAR --------------------------------------?>    
 

    
    	
			
			          			
			
        <TR VALIGN="TOP">
		<TD WIDTH=125 HEIGHT="31" class="gris">
		 <p> <?=$MSG_AJAX_ADMIN_SLIDER_ACTIVATED;?>	</p>	  </TD>
		<TD HEIGHT="31" WIDTH="418" class="gris">
		  <input type="radio" name="activated" value="1" <?if($activated == '1') print " CHECKED";?>>
		  
		  <?=$MSG_030;?>
		  
		  <input type="radio" name="activated" value="0" <?if($activated == '0') print " CHECKED";?>>
		  
		  <?=$MSG_029;?>		   </TD>
	  </TR>
			
			
			
			
      
      <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_TIME; ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="time" SIZE="45" MAXLENGTH="255" VALUE="<? print $time; ?>"> - <? print $MSG_AJAX_ADMIN_SLIDER_TIME_NOTE ?>
				   				</TD>
			  </TR>
			
			
		     <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_IMG1 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="img1" SIZE="45" MAXLENGTH="255" VALUE="<? print $img1; ?>"> - <? print $MSG_AJAX_ADMIN_SLIDER_IMG_NOTE ?>
				   				</TD>
			  </TR>	
			
			  <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_IMG2 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="img2" SIZE="45" MAXLENGTH="255" VALUE="<? print $img2; ?>">
				   				</TD>
			  </TR>	
			
			     <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_IMG3 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="img3" SIZE="45" MAXLENGTH="255" VALUE="<? print $img3; ?>">
				   				</TD>
			  </TR>	
			
			         <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_IMG4 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="img4" SIZE="45" MAXLENGTH="255" VALUE="<? print $img4; ?>">
				   				</TD>
			  </TR>	
			            <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_IMG5 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="img5" SIZE="45" MAXLENGTH="255" VALUE="<? print $img5; ?>">
				   				</TD>
			  </TR>	
			  
			  <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_LINK1 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="link1" SIZE="45" MAXLENGTH="255" VALUE="<? print $link1; ?>"> - <? print $MSG_AJAX_ADMIN_SLIDER_LINK_NOTE ?>
				   				</TD>
			  </TR>	
			  
			  <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_LINK2 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="link2" SIZE="45" MAXLENGTH="255" VALUE="<? print $link2; ?>">
				   				</TD>
			  </TR>	
			  
			  			  <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_LINK3 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="link3" SIZE="45" MAXLENGTH="255" VALUE="<? print $link3; ?>">
				   				</TD>
			  </TR>
			  
			     			  <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_LINK4 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="link4" SIZE="45" MAXLENGTH="255" VALUE="<? print $link4; ?>">
				   				</TD>
			  </TR>
			  
			     			     			  <TR VALIGN="TOP">
				<TD WIDTH=125 class="lineV">
				  <p class="blue"><? print $MSG_AJAX_ADMIN_SLIDER_LINK5 ?></p>
				  </TD>
				<TD WIDTH="400"> 		  
				  <INPUT TYPE="text" NAME="link5" SIZE="45" MAXLENGTH="255" VALUE="<? print $link5; ?>">
				   				</TD>
			  </TR>
			  
			  
			  
			  
			
			</TABLE>
		
		  <INPUT TYPE=hidden NAME=update VALUE=1 >
		        <INPUT TYPE="submit" NAME="act" VALUE="<? print $MSG_AJAX_ADMIN_UPDATE_SETTINGS; ?>" class="action">
		 </form>
		
		</TD>
		</TR>
	</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
